﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.BLL;
using CSF.Security.Data;
using Ict.DataAccess;

namespace CSF.Security.BLL
{
    /// <summary>
    /// 应用程序业务逻辑类
    /// </summary>
    public class ApplicationBLL : TransactionConfigLogic<Application>
    {
        /// <summary>
        /// 获取网上商店
        /// </summary>
        /// <returns></returns>
        public List<Application> GetWebShop()
        {
            var q = from p in DataContext.Select<Application>()
                    where (!p.IsDisable || p.IsDisable == null) && p.IsWebShop
                    orderby p.Sequence
                    select p;
            return q.ToList();
        }
    }
}
